package cn.kone.user.mapper;

import cn.kone.user.domain.User;
import cn.kone.user.domain.query.UserQuery;

import java.util.List;

public interface UserMapper {

    //查询单个
    User findOne(Long id);
    //查询所有
    List<User> findAll();
    //新增
    void addUser(User user);
    //修改
    void updateUser(User user);
    //删除
    void deleteUser(Long id);
    //高级查询+分页查询
    List<User> pageQuery(UserQuery userQuery);
    //批量删除
    void batchDeleteUser(Long[] ids);
}
